Workaround for GLib's recursive moving error, e.g. with bound mounts
authorTsu Jan <tsujan2000@gmail.com>
Sun, 21 Apr 2019 19:37:07 +0000 (00:07 +0430)
committerAlf Gaida <agaida@siduction.org>
Sat, 5 Oct 2019 10:56:09 +0000 (11:56 +0100)
commit73ab07722350b66cf30e9de676a2e029af0f97ef
tree831b159c0168f7dfbb4280c8ff901ed36254327e
parentd4fc21a1e8d5789a93e0f610d7346e76bd134c47
Workaround for GLib's recursive moving error, e.g. with bound mounts

`g_file_move()` may not work recursively on the same filesystem, especially
with bound mounts (to `/mnt`, for example) and give the `G_IO_ERROR_WOULD_RECURSE`
error. This patch ignores the error and tries our `FileTransferJob::copyFile()`.

Closes https://github.com/lxqt/pcmanfm-qt/issues/943

Gbp-Pq: Name workaround-glib-recursive-moving-error.patch
src/core/filetransferjob.cpp